"use strict"

/**
 * 淄博市政府采购网爬虫
 *  
 */

var Base = require("./base");
var zb_spider = new Base();
zb_spider.name = "淄博市政府采购网";
zb_spider.encode = "GBK";

zb_spider.getPageUrl = function (pg) {
    return "http://www.zbsczj.gov.cn:81/sdgp2014/site/channelall.jsp?curpage=" + pg + "&colcode=0301&subject=&pdate=";
};

zb_spider.getItems = function ($) {
    var items = [];
    $(".five").each(function (index, ele) {
        var e = $(ele);
        var item = {};
        item.title = e.attr("title");
        item.url = "http://www.zbsczj.gov.cn:81/" + e.attr("href");
        item.source = zb_spider.name;
        items.push(item);
    });
    return items;
};

exports = module.exports = zb_spider;